def func(number):
    return int(list(str(number))[len(str(number))-1])

assert func(192) == 2
assert func(242748) == 8
assert func(0) == 0